/**
 * @author baz
 */
package mvc.view {
import bot.BotView;
import bot.weapon.WeaponEvent;

import flash.events.Event;

import org.robotlegs.mvcs.Mediator;

public class BotViewMediator extends Mediator {

    [Inject]
    public var view:BotView;

    override public function onRegister():void {
        eventMap.mapListener(view, WeaponEvent.FIREBALL_SHOT, fireBallShotHandler);
    }

    private function fireBallShotHandler(e:Event):void {
        dispatch(e);
    }
}
}
